package design.principles.liskov$substitution.after;

/**
 * @author AtoVio, Winter Yuan
 */
public class Test {
    public static void main(String[] args) {

    }

    public static void resize(Rectangle rectangle) {
        while (rectangle.getWidth() <= rectangle.getLength()){
            rectangle.setWidth(rectangle.getWidth() + 1);
        }
    }

    public static void printRectangle(Quadrilateral quadrilateral) {
        System.out.printf("长为：%4.2f\n", quadrilateral.getLength());
        System.out.printf("宽为：%4.2f\n", quadrilateral.getWidth());
    }
}
